<!--
 * @Author: gyc
 * @Date: 2020-06-17 09:45:41
 * @LastEditTime: 2020-08-14 08:34:21
 * @Description: Nuxt测试版
--> 
<template>
  <div class="index-movies">
    <!-- <h2 v-if="ishow">
      <nuxt-link to="moreMovies">
        <Icon type="md-easel" />影视分享
      </nuxt-link>
      <div class="title-line"></div>
    </h2>-->
    <h3 v-if="ishow"><nuxt-link to='moviesMore'>电视剧</nuxt-link></h3>
    <div class="index-movies-box" v-if="ishow">
      <movie-box v-for="i in 8" :key="i" class="movies-box-item"></movie-box>
    </div>
  </div>
</template>

<script>
import movieBox from "@/components/index/indexMovies/movieBox/box";
export default {
  name: "indexMovies",
  props: ["ishow"],
  components: {
    "movie-box": movieBox
  }
};
</script>

<style lang="scss" scoped>
@media screen and (max-width: 1100px) {
  .index-movies {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media screen and (min-width: 1100px) {
  .index-movies {
    width: 1100px;
  }
}
a:hover {
  color: black;
}
.index-movies {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  height: 244px;
  justify-content: center;
  h3 {
    padding-bottom: 15px;
    transition: all 0.4s ease-in-out;
    animation: showMoviesBox 0.8s ease-in-out;
  }
  .index-movies-box {
    display: flex;
    width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    height: auto;
    transition: all 0.4s ease-in-out;
    animation: showMoviesBox 0.8s ease-in-out;
    justify-content: space-between;
    &:nth-of-type(1) {
      margin-bottom: 30px;
    }
    &::-webkit-scrollbar {
      display: none;
    }
    .movies-box-item {
      &:not(:nth-of-type(1)) {
        margin-left: 10px;
      }
    }
  }
}
@keyframes showMoviesBox {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
</style>